package com.woniuxy.enjoylife.mapper;

import com.woniuxy.enjoylife.entity.Goods_agree;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author teamEnjoyLife75
 * @since 2021-01-23
 */
public interface Goods_agreeMapper extends BaseMapper<Goods_agree> {

    int selectAgreeCount(int gid);

    int insertAgree(Goods_agree o);

    int deleteAgreeById(int id);

    boolean selectIsAgreed(@Param("gid") int gid, @Param("uid") int uid);

    boolean insertAgree(@Param("gid") int gid, @Param("uid") int uid);

    boolean deleteAgree(@Param("gid") int gid, @Param("uid") int uid);
}
